home *** CD-ROM | disk | FTP | other *** search
/ 5 Star Games: DOS Edition 2 / 5 Star Games - DOS Edition (1995)(Ready to Run).iso / dbc / db_str.h < prev    next >
C/C++ Source or Header  |  1993-12-07  |  2KB  |  33 lines

  1. /****************************************************************************/
  2. /*                HEADER FILE FOR DATABOSS MODULE: DB_STR                   */
  3. /****************************************************************************/
  4.  
  5. /*******************************  PROTOTYPES  *******************************/
  6.  
  7. #ifndef __TURBOC__
  8.     #define stpcpy(sout,s) strchr(strcpy(sout,s),'\0')
  9. #endif
  10. #define strequ(s1,s2) (strcmp(s1,s2) == 0)
  11. #define strsearch(targ,subs) ((subs[0] =='\0') ? targ : strstr(targ,subs))
  12. char* DB_Sprintf( char* pachBuffer, char* pchFormat,...);
  13. strptr  strcopy(string sout, string s, int from, int len);                      /* sout can be the source string but not a ptr inside the string */
  14. strptr  strconcat(string sout, ...);                                            /*    sout can be the any part of any source string */
  15.                                                                                  /* end of list is marked by a NULL pointer */
  16. strptr  strdelete(string s, int from, int len);
  17. strptr  strinsert(string sins, string s, int pos);                                /* sins can be the source string but not a ptr inside the string */
  18. int     strposstr(string chkfor, string s);
  19. int     strposch(uchar c, string s);
  20. strptr  chstr(string sout, byte c);
  21. strptr  strchcat(strptr s, uchar ch);
  22. strptr  pastocstr(strptr ps);                                                    /* assumes the pascal string does not contain NULs */
  23.  
  24. char *  mid(char *destination, char *source, int start, int length);           /* extract sub-string from first string  */
  25. int     strgt(char *source1, char *source2);
  26. int     strlt(char *source1, char *source2);
  27. int     strgte(char *source1, char *source2);
  28. int     strlte(char *source1, char *source2);
  29. int     strne(char *source1, char *source2);
  30.  
  31.  
  32. /****************************  END OF DB_STR.H  *****************************/
  33.